<template>
  <div class="head">
    <div class="header">
      <a href="javascript:;" class="go-back" @click="goBack">返回</a>
      <h4 class="header-cont">商品详情页</h4>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: 'detail-header',
  data () {
    return {}
  },
  methods: {
    goBack () {
      window.history.back()
    }
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
  @import "detailHeader.styl";
</style>
